#ifndef H_SP_FORMAT
#define H_SP_FORMAT

//file type enum
enum file_type {
	TYPE_WAVE,
	TYPE_FLAC,
	TYPE_OGG,
	TYPE_MP3,
	TYPE_AAC
};

/*
//string versions of file types, if you add more types
//make sure it mirrors the file_type enum above
static const char *filenames[] = {
	"wav", 
	"flac", 
	"ogg", 
	"mp3", 
	"aac"
};

//magic numbers
static const char *magic[] = {
	"WAVEfmt",    //wave
	"fLaC",       //flac
	"vorbis",     //vorbis
	"ID3",        //mp3
	"\xFF\xE0",   //mp3 syncword
	"\xFF\XF0",   //mp3 syncword again
	"ADIF",       //aac
	"Lavc",       //aac again                               
	'\0'          //this is the end of the array
};

//lookup table for above magic numbers, if you add/remove magic
//make sure the table below is updated
unsigned lookup_table[] = { 
	TYPE_WAVE,
	TYPE_FLAC,
	TYPE_OGG,
	TYPE_MP3,
	TYPE_MP3,
	TYPE_MP3,
	TYPE_AAC,
	TYPE_AAC
}; 
*/                                                                                  

#endif
